package game;

import java.util.Set;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="gamelevel")
public class GameLevelImpl
	implements IGameLevel
{
	private Set<IDrawableRectangle> platforms;
	
	public GameLevelImpl()
	{
		;
	}

	@XmlElementWrapper(name="platforms")
	@XmlElement(type=DrawableRectangleImpl.class,name="platform")
	@Override
	public void setPlatforms(Set<IDrawableRectangle> gameComponents)
	{
		this.platforms = gameComponents;
	}

	@Override
	public Set<IDrawableRectangle> getPlatforms()
	{
		return platforms;
	}
}
